package com.xiezhenyu98.controller;

import cn.hutool.core.date.Season;
import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.RandomUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ThreadLocalRandom;

/**
 * @author tim.xie
 * @date 2022/9/7 13:12
 */
@RestController
@RequestMapping("/api/test")
public class TestController {

    @RequestMapping(value = "/t1", method = RequestMethod.GET)
    public Object getDbDatByLicenseId(Long id) {
        ThreadLocalRandom random = RandomUtil.getRandom();
        System.out.println(Season.AUTUMN.name());
        String[] aaa = null;
        System.out.println(ArrayUtil.isEmpty(aaa));
        return null;
    }
}
